package com.jy.api.service;

import com.jy.api.domain.Num;
import com.jy.api.domain.Partition;
import com.jy.api.signUpReq.admin.PartitionReq;
import com.jy.api.signUpReq.pos.IndexParAndNumAllRes;
import com.jy.api.signupRes.StorePartRes;
import com.jy.api.util.Result;

import java.util.List;

/**
 * Created by xiaohua on 2019/2/18.
 */
public interface PartitionService {
    /**
     * 得到店铺下所有未删除分区
     * @param storeId
     * @return
     */
    List<Partition> getAllPar(String storeId);

    /**
     * 添加店铺下分区  禁止分区名字一致
     * @param req
     * @return
     */
    Result addPar(PartitionReq req);


    Result deleteParById(PartitionReq req);

    Result updateParById(PartitionReq req);


    IndexParAndNumAllRes getStorePart(String storeId, String source, int parId);


}
